package com.ktgj.customer.service.impl;

import com.ktgj.customer.domain.Bank;
import com.ktgj.customer.domain.BankCard;
import com.ktgj.customer.domain.vo.BankCardVo;
import com.ktgj.customer.mapper.BankCardMapper;
import com.ktgj.customer.mapper.BankMapper;
import com.ktgj.customer.mapper.CustomerMapper;
import com.ktgj.customer.service.IBankCardService;
import com.ktgj.customer.service.IBankService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;
import java.util.concurrent.CopyOnWriteArrayList;

/**
 * 银行信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-09-01
 */
@Service
public class BankServiceImpl implements IBankService
{
    @Autowired
    private BankMapper bankMapper;

    /**
     * 根据银行名称模糊查询
     * */
    @Override
    public Bank selectBankLike(String bankName) {
        return bankMapper.selectBankLike("%"+bankName+"%");
    }

    /**
     * 开户行列表
     * */
    @Override
    public List<Bank> selectbank() {
        List<Bank> selectbank = bankMapper.selectbank();
        return selectbank;
    }
}
